<template>
        <div class="moviecontainer">
            <MovieItem :movies="item" v-for="item,index of collectlists" :key="index"></MovieItem>
        </div>
</template>

<script>
import MovieItem from '../../components/MovieItem';
// import Collectlists from '../../globalComponents/Collectlists'
import { getCollectMovie } from "../../model/MovieCollect";
    export default {
        components:{MovieItem},
        data() {
            return {
                collectlists:{},
            }
        },
        mounted() {
            var getCollectMovieUrl = `/api/getCollect`;
            getCollectMovie(getCollectMovieUrl).then(res=>{
                // console.log(res)
                this.collectlists = res.data.res
            })
        },
    }
</script>

<style scoped>

</style>